package com.spartez.farhorizons.client;

import com.spartez.farhorizons.client.data.ISystemDescr;

public class Calculator {
	private Calculator() {
		
	}
	
	public static double calcDistance(ISystemDescr a, ISystemDescr b) {
		final int dx = a.getX() - b.getX();
		final int dy = a.getY() - b.getY();
		final int dz = a.getZ() - b.getZ();

		return Math.sqrt(dx * dx + dy * dy + dz * dz);
	}
}
